﻿// JavaScript Document
function startTime()
{
    var today=new Date()
    var Y=today.getFullYear()
    var m=today.getMonth()+1
    var D=today.getDate()
    // add a zero in front of numbers<10
    m=check(m)
    D=check(D)
    document.getElementById('date').innerHTML=Y+"/"+m+"/"+D
    setTimeout('startTime()',500)
}

function check(i)
{
    if (i<10) 
    {i="0" + i}
    return i
}

$(function(){
    $("#smoothmenu1 ul li").hoverIntent({
	sensitivity: 3,
	interval: 200,
	over:submenuShow,
	timeout: 0,
	out:submenuHide
    });
    function submenuShow(){
	$(this).children("ul").slideDown("fast");
    }
    function submenuHide(){
	$(this).children("ul").slideUp("fast");
    }
    $("#smoothmenu1 ul li").hover(function(){
	$(this).css("background","#999");
    },function(){
	$(this).css("background","#595957");
    });
})